<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>

<form method="post" action="" name="listForm">
<!-- start reg_fiedls list -->
<div class="list-div" id="listDiv">
<?php endif; ?>

<table cellspacing='1' id="list-table">
  <tr>
    <th>Banner图</th>
    <th>添加时间</th>
    <th>修改时间</th>
    <th>操作</th>
  </tr>
  <?php $_from = $this->_var['banner']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ban');if (count($_from)):
    foreach ($_from AS $this->_var['ban']):
?>
  <tr>
    <td class="first-cell"  align="center"><img src="../<?php echo $this->_var['ban']['img']; ?>" height="60px" width="192" /></td>
    <td align="center"><?php echo date('Y-m-d',$this->_var['ban']['c_time']); ?></td>
    <td align="center"><?php echo date('Y-m-d',$this->_var['ban']['u_time']); ?></td>
    <td align="right"><a href="?act=edit&id=<?php echo $this->_var['ban']['id']; ?>">编辑</a><?php if ($this->_var['ban']['type'] == 0): ?> | <a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['ban']['id']; ?>, '是否删除该banner图？')" title="删除">删除</a><?php endif; ?></td>
  </tr>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </table>

<?php if ($this->_var['full_page']): ?>
</div>
<!-- end reg_fiedls list -->
</form>
<script type="Text/Javascript" language="JavaScript">
<!--

onload = function()
{
    // 开始检查订单
    startCheckOrder();
}

//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>
